import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/store/store/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/rb-service/service/store/store/inStorage',
    method: 'post',
    data: row
  })
}
// 查询类型列表
export const selectTypeList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/store/store/selectTypeList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
// 查询型号列表
export const selectModelList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/store/store/selectModelList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
// 查询供应商列表
export const selectSupList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/store/store/selectSupList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// // 详情--自带
// export const getDetail = (id) => {
//   return request({
//     url: '/api/rb-service/service/store/store/detail',
//     method: 'get',
//     params: {
//       id
//     }
//   })
// }

// // // 删除--自带
// export const remove = (ids) => {
//   return request({
//     url: '/api/rb-service/service/store/store/remove',
//     method: 'post',
//     params: {
//       ids,
//     }
//   })
// }
// // 更新--自带
// export const update = (row) => {
//   return request({
//     url: '/api/rb-service/service/store/store/submit',
//     method: 'post',
//     data: row
//   })
// }

